<div class="bottomNav">
    <div class="menu">
        <ng-content *ngFor="let item of menuList; index as i; count as c;">
            <div class="menuItem" (click)="toggleItem(item)">
                <img class="menuImg" [src]="item.imgUrl" style="width: 40px; height: 38px;">
                <div *ngIf="item.isClose" class="notAllow"></div>
                <span class="menuName">{{ item.name }}</span>
                <div class="subMenu" *ngIf="item.children?.length">
                    <div class="subMenuItem" *ngFor="let sub of item.children"
                        (click)="$event.stopPropagation();toggleItem(sub)">{{ sub.name }}</div>
                </div>
            </div>
            <div class="gameBtn" *ngIf="(c%2 === 0 ? i === c/2-1: i=== c/2-0.5)">
                <p>开始</p>
                <p>游戏</p>
            </div>
        </ng-content>
    </div>
</div>